﻿<UserControl x:Class="LiveTiss.Guias.UserControls.ListaProcedimentoOdontoRevisao"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:converter="clr-namespace:LiveTiss.Classes.TypeConverter"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    xmlns:uc="clr-namespace:LiveTiss.Guias.UserControls"
    mc:Ignorable="d" x:Name="uc"
    d:DesignHeight="300" d:DesignWidth="400" Width="910">

    <UserControl.Resources>
        <converter:EnumConverter x:Key="enumConverter" />
    </UserControl.Resources>

    <Grid Margin="0,19,0,0" VerticalAlignment="Top">
        <Rectangle RadiusY="6" RadiusX="6" Stroke="#4D898989"/>
        <TextBlock TextWrapping="Wrap" Text="Procedimentos Realizados" Margin="10,10,8,0" VerticalAlignment="Top" FontFamily="Segoe UI Semibold" FontSize="16"/>
        <StackPanel Margin="12,44,8,0">
            <ItemsControl ItemsSource="{Binding Path=Value,ElementName=uc,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}">
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <Grid Background="#FFD9F1F1" Margin="12,14,14,0" VerticalAlignment="Top" Loaded="Grid_Loaded">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="33"/>
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <Grid Margin="8,0,0,-2">
                                <TextBlock TextWrapping="Wrap" Text="01" FontSize="16"/>
                                <Button x:Name="btnExcluir" Content="X" HorizontalAlignment="Right" Margin="0,4,6,6" Width="25" Height="25" Style="{StaticResource Fechar_TipoGuia}" Foreground="White"
                                        Click="btnExcluir_Click"/>
                            </Grid>
                            <uc:ProcedimentoOdontoRevisao x:Name="ucProcedimentosOdontoRevisao" Margin="0,2,0,10" Grid.Row="1" 
                                                                         />
                           
                        </Grid>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>

            <Grid Margin="0,6,14,0" HorizontalAlignment="Right">
                <Button x:Name="btnNovo" Content="Novo Procedimento" Width="121" Height="22" Click="btnNovo_Click"/>
            </Grid>
        </StackPanel>
    </Grid>
</UserControl>
